#Boa:Dialog:InfoDlg

import wx

def create(parent):
    return InfoDlg(parent)

[wxID_INFODLG, wxID_INFODLGACCEPT, wxID_INFODLGINFO, wxID_INFODLGINFONAME,
 wxID_INFODLGREJECT, wxID_INFODLGSCROLLEDWINDOW1,
] = [wx.NewId() for _init_ctrls in range(6)]

class InfoDlg(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_INFODLG, name=u'InfoDlg', parent=prnt,
              pos=wx.Point(417, 190), size=wx.Size(620, 416),
              style=wx.DEFAULT_DIALOG_STYLE, title=u'Info')
        self.SetClientSize(wx.Size(602, 371))

        self.scrolledWindow1 = wx.ScrolledWindow(id=wxID_INFODLGSCROLLEDWINDOW1,
              name='scrolledWindow1', parent=self, pos=wx.Point(8, 48),
              size=wx.Size(584, 264), style=wx.HSCROLL | wx.VSCROLL)

        self.infoName = wx.StaticText(id=wxID_INFODLGINFONAME,
              label=u'infoName', name=u'infoName', parent=self, pos=wx.Point(16,
              24), size=wx.Size(62, 18), style=0)

        self.info = wx.TextCtrl(id=wxID_INFODLGINFO, name=u'info',
              parent=self.scrolledWindow1, pos=wx.Point(8, 8), size=wx.Size(568,
              256), style=wx.TE_MULTILINE, value=u'')

        self.accept = wx.Button(id=wx.ID_OK, label=u'accept', name=u'accept',
              parent=self, pos=wx.Point(96, 336), size=wx.Size(100, 31),
              style=0)
        self.accept.Bind(wx.EVT_BUTTON, self.OnAcceptButton,
              id=wxID_INFODLGACCEPT)

        self.reject = wx.Button(id=wx.ID_CANCEL, label=u'reject',
              name=u'reject', parent=self, pos=wx.Point(304, 336),
              size=wx.Size(100, 31), style=0)
        self.reject.Bind(wx.EVT_BUTTON, self.OnRejectButton,
              id=wxID_INFODLGREJECT)

    def __init__(self, parent):
        self._init_ctrls(parent)

    def appendInfo(self,name,info):
        self.infoName.Label = name
        self.info.AppendText(info)

    def OnAcceptButton(self, event):
        event.Skip()

    def OnRejectButton(self, event):
        event.Skip()
